package clsLib;

/**
 * 
 * 
 */
public class GoodsItem {
	private Goods goods;
	private int num ;
        private double itemPrice;
        
	public GoodsItem(Goods goods, int num) {
	
		this.goods = goods;
		this.num=num;
                itemPrice=goods.getPrice()*num;
	}

        
        
    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public double getItemPrice() {
        return itemPrice;
    }

    public void setItemPrice(double itemPrice) {
        this.itemPrice = itemPrice;
    }

        
        
}
